package com.peas.platform.module.icims.contract.initial.adapter.repository.po;

import java.util.*;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.peas.platform.common.core.annotation.Comment;
import com.peas.platform.framework.mybatisplus.po.BasePo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.ibatis.type.JdbcType;
import javax.validation.constraints.*;

// 初始合同执行-生效
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "`tbl_contract_initial_effect`")
public class ContractInitialEffectPo extends BasePo {

    // 合同ID
    // 【初始合同表】
    @Comment(value = "合同ID")
    @NotNull(message = "合同ID不能为空")
    @TableField(value = "`contract_initial_id`", jdbcType = JdbcType.BIGINT)
    private Long contractInitialId;

    // 批次号
    @Comment(value = "批次号")
    @Size(max = 20, message = "批次号不能超过20个字符")
    @TableField(value = "`batch`", jdbcType = JdbcType.VARCHAR)
    private String batch;

    // 生效经办人
    // 【用户表】
    @Comment(value = "生效经办人")
    @TableField(value = "`effect_user_id`", jdbcType = JdbcType.BIGINT)
    private Long effectUserId;

    // 生效经办人部门
    // 【组织架构表】
    @Comment(value = "生效经办人部门")
    @TableField(value = "`effect_department_id`", jdbcType = JdbcType.BIGINT)
    private Long effectDepartmentId;

    // 附件ID
    // 【附件表】
    @Comment(value = "附件ID")
    @TableField(value = "`attachment_id`", jdbcType = JdbcType.BIGINT)
    private Long attachmentId;

    // 附件名称
    @Comment(value = "附件名称")
    @Size(max = 200, message = "附件名称不能超过200个字符")
    @TableField(value = "`attachment_name`", jdbcType = JdbcType.VARCHAR)
    private String attachmentName;

    // 附件URL
    @Comment(value = "附件URL")
    @Size(max = 500, message = "附件URL不能超过500个字符")
    @TableField(value = "`attachment_url`", jdbcType = JdbcType.VARCHAR)
    private String attachmentUrl;

    // 附件大小
    @Comment(value = "附件大小")
    @TableField(value = "`attachment_size`", jdbcType = JdbcType.BIGINT)
    private Long attachmentSize;

    // 附件上传时间
    @Comment(value = "附件上传时间")
    @TableField(value = "`attachment_upload`", jdbcType = JdbcType.TIMESTAMP)
    private Date attachmentUpload;

    // 附件上传人
    @Comment(value = "附件上传人")
    @Size(max = 20, message = "附件上传人不能超过20个字符")
    @TableField(value = "`attachment_uploader`", jdbcType = JdbcType.VARCHAR)
    private String attachmentUploader;

    // 备注
    @Comment(value = "备注")
    @Size(max = 1000, message = "备注不能超过1000个字符")
    @TableField(value = "`remark`", jdbcType = JdbcType.VARCHAR)
    private String remark;

    // 生效状态
    // 枚举取值:ContractInitialEffectState
    @Comment(value = "生效状态", enumType = "ContractInitialEffectState")
    @Size(max = 20, message = "生效状态不能超过20个字符")
    @TableField(value = "`state`", jdbcType = JdbcType.VARCHAR)
    private String state;

}
